// The Vue build version to load with the `import` command
import Vue from 'vue'
import App from './App'
import router from './router'
import 'vue-ydui/dist/ydui.px.css'
import '@/common/stylus/index.styl'
// import '@/common/css/reset.css' // 基础样式
import YDUI from 'vue-ydui' /* 相当于import YDUI from 'vue-ydui/ydui.rem.js' */
import axios from 'axios' // 引入axios
import { ToastPlugin, LoadingPlugin, Loading, Confirm, AlertPlugin } from 'vux'
import  { ConfirmPlugin } from 'vux'
Vue.use(ConfirmPlugin)
Vue.use(LoadingPlugin)
Vue.use(Confirm)
Vue.use(Loading)
Vue.use(ToastPlugin)
Vue.use(AlertPlugin)
import qs from 'qs'
import getUrl from '../static/js/getUrl'
import confusion from '../static/js/confusion'
import FastClick from 'fastclick'
FastClick.attach(document.body)
Vue.prototype.getUrl = getUrl
Vue.prototype.confusion = confusion
Vue.prototype.$axios = axios
Vue.use(qs)
Vue.use(YDUI)
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  data: {
    eventHub: new Vue()
  }
})
